import Slide from "./Slide";
import Header from "./Header";
import Content from "./Content";
import { useState } from "react";
import { Outlet } from "react-router-dom";
export default function Layout() {
  const [isFold, setFold] = useState(false); // 控制是否折叠
  return (
    <div className="overflow-hidden">
      <Header handleClick={setFold} isFold={isFold}></Header>
      <Slide isFold={isFold}></Slide>
      <Content isFold={isFold}>
        <Outlet></Outlet>
      </Content>
    </div>
  );
}
